﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mathematics.Expressions
{
    public class PrintFKeyword:Keyword
    {
        public PrintFKeyword(MathExpression expression)
        {
            Expression = expression;
        }

        public MathExpression Expression { get; private set; }


        public override double? Evaluate()
        {
            return PrintF(Expression);
        }


        public static double? PrintF(MathExpression expression)
        {
            var text = expression.ToString();

            Console.WriteLine();
            Console.WriteLine(text);
            return null;
        }


    }
}
